package online.longzipeng.householdbillssystem.business.vo.group;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel(value = "用户组新增对象",description = "请求参数类")
public class GroupSaveVO {

    @ApiModelProperty(value = "用户组名称",example = "我家",required = true)
    @NotBlank(message = "用户组名称不能为空！！")
    private String name;

    @ApiModelProperty(value = "创建用户组的用户id",example = "1",required = false)
    private Integer userId;

    @ApiModelProperty(value = "权限json字符串",example = "{save,delete,update,select}",required = true)
    private String permissJson;

}